package com.example.librarysystem.Service;

import com.example.librarysystem.entity.Star;
import com.example.librarysystem.entity.StarInfo;

import java.util.List;

public interface StarService {
    Integer selectCount();
    Integer selectCountByBookName(String bookName);
    List<StarInfo> selectStarInfo(int borrowerId, int currentPage, int pageSize);
    List<StarInfo> selectStarInfoSearch(int borrowerId, String bookName, String author, String publishingHouse, int currentPage, int pageSize);
    int deleteStarById(int id);
    int selectExist(String bookName, int borrowerId);
    int insertStar(Star star);
    int selectStarInfoCount(int borrowerId);
    int selectStarInfoSearchCount(int borrowerId, String bookName, String author, String publishingHouse);
}
